package com.woniuxy.dead;

import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.woniuxy.utils.Utils;

import java.io.IOException;
import java.util.concurrent.TimeoutException;

public class DelayProducer {
    public static void main(String[] args) throws IOException, TimeoutException {
        Connection connection = Utils.getConnection();
        Channel channel = connection.createChannel();
        channel.basicPublish("delayExchange","dalay1",null,"DelayProducer 发送消息".getBytes());
    }
}
